package select;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import neural.Individual;


public class Elite implements Selection{

	@Override
	public List<Individual> select(List<Individual> individuals, int amount, Comparator<Individual> comparator) {
		Collections.sort(individuals, comparator);
		return individuals.subList(0, amount);
	}

	
}
